# -*- coding: utf-8 -*-
import os
from bs4 import BeautifulSoup
def isBabel():
    if not os.path.exists("build/index.html"):
        return False
    fc=open("build/index.html","r",encoding="utf-8").read();
    soup = BeautifulSoup(fc,"html.parser")
    head=soup.find("head")
    css_old=head.find_all("link",rel="stylesheet")
    for css in css_old:
        href=css.attrs["href"]
        if "static" in href:
            return True
    return False

